package com.yp.infrastructure.mdb.model;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class Pagination implements Serializable {

    private int total;
    private int pages;
    private int curr;
    private List<?> data;
    public Pagination replaceItems(List<?> list) {
        this.setData(list);
        return this;
    }
}
